home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 6730 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.2 KB

  1. Path: airdmhor.gen.nz!not-for-mail
  2. From: gumboot@airdmhor.gen.nz (Simon Hosie)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Something to play with.
  5. Date: 15 Feb 1996 04:22:05 +1300
  6. Organization: Airdmhor : a couple of BBS's, a bunch of people, and a cat.
  7. Message-ID: <4fsumt$ej5@airdmhor.gen.nz>
  8. References: <4eist1$9fk@airdmhor.gen.nz> <31120ED7.5266@ntostud.mh.se> <7kka1yf747.fsf@nissart.lagaude.ibm.com>
  9. NNTP-Posting-Host: airdmhor.gen.nz
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12.  
  13. Simon Hosie wrote:
  14. >   If anyone gets any kind of warning or error comiling this or anything it
  15. > generates, please let me know.
  16. Guillaume Laurent:
  17. > I didn't get any on AIX 3.2.5 cc.
  18.  
  19.   A lot of other people had problems with 'void main' which is how I found
  20. out that you don't do that, somebody said it was illegal in ANSI, and
  21. somebody else said it wasn't illegal but some compilers didn't like it.  All
  22. I know for certain now it that you justr don't do it; but I'd like to see
  23. what ANSI has to say about it (don't know if it's in the FAQ, I haven't read
  24. that far yet).
  25.  
  26.  
  27. In article <31120ED7.5266@ntostud.mh.se> Roger Martensson <ping9535@ntostud.mh.se> writes:
  28. > It compiled quite nice, but it would be nice to know what this
  29. > program does? (Didn't dare to run the program)
  30.  
  31. Guillaume Laurent:
  32. > Well, if I understand correctly (Mr Hosie will correct me if I'm
  33. > wrong), it's a kind of compressor, like gzip, called gbcode. What is
  34. > special with it is that it can generate C code from a given file. What
  35. > for ? you ask. Well, once this very awkward C code is compiled,
  36. > running the resulting executable will generate the file you initally
  37. > compressed.
  38.  
  39.   Mostly, though it doesn't compress, it expands into printable characters
  40. (and characters usable between quotes in C and [in my latest fix] Pascal),
  41. you compress it yourself. 
  42.  
  43.  
  44. Guillaume Laurent:
  45. > Quite elegant, really. Have you ever consider participating the
  46. > Obfuscated C Code contest ?
  47.  
  48.   I doubt it'd win, it's only compressed, not really obfuscated.  Perhaps if
  49. I interpreted the binary data it generated and used that as the body of the
  50. code then it'd have a chance.  Interpreters are probably against the rules,
  51. though (if they're not but it's later decided they should be then I want dibs
  52. on the 'Hacker Test' point).
  53.